package com.ridu.project.beshid.entity;

import lombok.*;

import javax.persistence.*;
import java.math.BigDecimal;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Entity
@Table(name = "jifen_req", catalog = "besh_id_edu")
public class JifenReqEntity extends BaseEntity {

    @ManyToOne
    @JoinColumn(name = "user_id",columnDefinition = "bigint COMMENT '申请人'")
    private BeshUserEntity owner;

    @ManyToOne
    @JoinColumn(name = "admin_req_id",columnDefinition = "bigint COMMENT '厂商申请人'")
    private UserEntity user_req;

    @ManyToOne
    @JoinColumn(name = "admin_id",columnDefinition = "bigint COMMENT '审核人'")
    private UserEntity user;

    @Basic
    @Column(name = "platform",columnDefinition = "varchar(50) COMMENT '积分'")
    private String platform;

    @Basic
    @Column(name = "jifen",columnDefinition = "double COMMENT '积分'")
    private BigDecimal jifen;

    @Basic
    @Column(name = "req_jifen",columnDefinition = "double COMMENT '申请积分'")
    private BigDecimal req_jifen;

    @Basic
    @Column(name = "token",columnDefinition = "varchar(50) COMMENT '代币'")
    private String token;

    @Basic
    @Column(name = "status",columnDefinition = "varchar(10) COMMENT '审核状态'")
    private String status;

    @Basic
    @Column(name = "description",columnDefinition = "varchar(255) COMMENT '详情'")
    private String description;

}
